package com.yingsheng.bi.hks.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class HksRes {

    @ApiModelProperty(value = "响应源")
    private String source;

    @ApiModelProperty(value = "响应码",
            notes = "000000-交易成功,000001-请求数据异常, 000002-方法参数类型不匹配,000003-请求参数缺失,000005-请求参数校验异常," +
                    "100001-业务数据非法,100002-业务处理异常," +
                    "999999-系统服务异常")
    private String returnCode = "000000";

    @ApiModelProperty(value = "响应描述")
    private String returnMsg = "交易成功";

    @ApiModelProperty(value = "错误码")
    private String errorCode;

    @ApiModelProperty(value = "错误描述")
    private String errorMsg;

    public void addSource(String source) {
        this.source = this.source + "," + source;
    }

}
